package java7;

import java.io.RandomAccessFile;

public class AAA {

    public static void main(String[] args) throws Exception {
        RandomAccessFile raf = new RandomAccessFile("D:/1.txt", "rw");
        raf.writeDouble(100d);
        raf.getFD().sync();
        long f = Double.doubleToLongBits(100d);
        System.out.println(f);
        System.out.println((int) (f >>> 56) & 0xFF);
        System.out.println((int) (f >>> 48) & 0xFF);
        System.out.println((int) (f >>> 40) & 0xFF);
        System.out.println((int) (f >>> 32) & 0xFF);
        System.out.println((int) (f >>> 24) & 0xFF);
        System.out.println((int) (f >>> 16) & 0xFF);
        System.out.println((int) (f >>> 8) & 0xFF);
        System.out.println((int) (f >>> 0) & 0xFF);
    }

}
